package com.senyint.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository("hisDao")
public class HisDaoImpl implements HisDao {
    
 // mybatis
    @Autowired
    protected SqlSession sqlSessionHis;

	public SqlSession getSqlSessionHis() {
		return sqlSessionHis;
	}

	public void setSqlSessionHis(SqlSession sqlSessionHis) {
		this.sqlSessionHis = sqlSessionHis;
	}

	@Override
	public List<Map<String, Object>> selectRefund() {
		// TODO Auto-generated method stub
		return sqlSessionHis.selectList("his.selectRefund");
	}

	@Override
	public List<Map<String, Object>> selectPay() {
		// TODO Auto-generated method stub
		return sqlSessionHis.selectList("his.selectPay");
	}

}
